using UnityEngine;
using System.Collections;

public class UI_TextColor : MonoBehaviour 
{
    public Color onMouseEnterColor;
    public Color onMouseLeaveColor = Color.white;

    void Start()
    {
        renderer.material.color = onMouseLeaveColor;
    }

    void OnMouseEnter()
    {
        renderer.material.color = onMouseEnterColor;
    }

    void OnMouseExit()
    {
        renderer.material.color = onMouseLeaveColor;
    }
}
